import { status } from '@/plugins/mate.js'
export const formConfig = [
    {
        name: 'title',
        type: 'input',
        placeholder: '标题',
    },
]

export const config = [
    {
        name: 'title',
        type: 'input',
        label: '标题',
        placeholder: '请输入标题',
        required: true,
    },
    {
        name: 'filepath',
        type: 'file',
        label: '附件',
        action: '/api/report/upload',
        accept: '.pdf',
    },
]

export const column = [
    {
        name: 'selection',
    },
    {
        label: '标题',
        name: 'title',
    },

    {
        label: '附件',
        name: 'filepath',
        accept: '.pdf',
    },
    {
        title: '操作',
        name: 'action',
        width: '220',
        buttons: [
            {
                text: '下载',
                click: (val) => {},
            },
            {
                text: '编辑',
                click: (val) => {},
            },
            {
                text: '删除',
                click: (val) => {},
            },
        ],
    },
]
